<?php
/**
 * Pert PHP Library
 * Date Class Extends DateTime Class
 *
 * @author	Emre Hasegeli <hasegeli@gmail.com>
 * @license	GNU General Public License v3
 */

namespace Pert;

class Date extends \DateTime
{
	public function __ToString()
	{
		return $this->format('d.m.Y');
	}

	public static function Select($string)
	{
		if(self::createFromFormat('d.m.Y',
				$string))
			return self::createFromFormat('d.m.Y',
					$string);
	}
}
